package com.keba.lamp.system.vo.result.application;


import com.keba.basic.annotation.echo.Echo;
import com.keba.basic.base.entity.Entity;
import com.keba.basic.interfaces.echo.EchoVO;
import com.keba.lamp.model.constant.EchoApi;
import com.keba.lamp.model.constant.EchoDictType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


/**
 * <p>
 * 实体类
 * 租户应用授权记录
 * </p>
 *
 * @author zuihou
 * @since 2021-09-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema(description = "租户应用授权记录")
public class DefTenantApplicationRecordResultVO extends Entity<Long> implements Serializable, EchoVO {

    private static final long serialVersionUID = 1L;
    @Builder.Default
    private Map<String, Object> echoMap = new HashMap<>();

    @Schema(description = "主键")
    private Long id;

    /**
     * 授权ID
     */
    @Schema(description = "授权ID")
    
    private Long tenantApplicationRelId;
    /**
     * 企业ID
     */
    @Schema(description = "企业ID")
    
    private Long tenantId;
    /**
     * 应用ID
     */
    @Schema(description = "应用ID")
    
    private Long applicationId;
    /**
     * 应用名称
     */
    @Schema(description = "应用名称")
    
    private String applicationName;
    /**
     * 企业名称
     */
    @Schema(description = "企业名称")
    
    private String tenantName;
    /**
     * 操作人姓名
     */
    @Schema(description = "操作人姓名")
    
    private String operateByName;
    /**
     * 授权类型;[10-应用授权 20-应用续期 30-取消授权]
     *
     * @Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.APPLICATION_GRANT_TYPE)
     */
    @Schema(description = "授权类型")
    @Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.APPLICATION_GRANT_TYPE)
    
    private String grantType;
}
